#ifndef THREAD_SEARCH_TRACE_H
#define THREAD_SEARCH_TRACE_H

#include <wx/string.h>
#include <wx/file.h>
#include <wx/thread.h>

class ThreadSearchTrace : protected wxFile, protected wxMutex {
  public:

    ~ThreadSearchTrace() {};

    static bool Init( const wxString& path );
    static void Uninit();
    static bool Trace( const wxString& str );

  private:

    ThreadSearchTrace() {};

    static ThreadSearchTrace* ms_Tracer;
};


class TraceBeginEndOfMethod {
  public:
    TraceBeginEndOfMethod( const wxString& method );

    ~TraceBeginEndOfMethod();

  private:
    wxString m_Method;
};

#endif

